<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core"
       xmlns:p="http://primefaces.org/ui">
      

    <ui:composition template="/menu.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.ListTiposmaquinaTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:form styleClass="jsfcrud_list_form">
                <p:growl/>
                <h:outputText escape="false" value="#{bundle.ListTiposmaquinaEmpty}" rendered="#{tiposmaquinaController.items.rowCount == 0}"/>
                <h:panelGroup rendered="#{tiposmaquinaController.items.rowCount > 0}">
                    <h:outputText value="#{tiposmaquinaController.pagination.pageFirstItem + 1}..#{tiposmaquinaController.pagination.pageLastItem + 1}/#{tiposmaquinaController.pagination.itemsCount}"/>&nbsp;
                    <h:commandLink action="#{tiposmaquinaController.previous}" value="#{bundle.Previous} #{tiposmaquinaController.pagination.pageSize}" rendered="#{tiposmaquinaController.pagination.hasPreviousPage}"/>&nbsp;
                    <h:commandLink action="#{tiposmaquinaController.next}" value="#{bundle.Next} #{tiposmaquinaController.pagination.pageSize}" rendered="#{tiposmaquinaController.pagination.hasNextPage}"/>&nbsp;
                    <p:dataTable value="#{tiposmaquinaController.items}" var="item" paginator="true" rows="10" style="border:solid 1px">
                        <p:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListTiposmaquinaTitle_id}"/>
                            </f:facet>
                            <h:outputText value="#{item.id}"/>
                        </p:column>
                        <p:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListTiposmaquinaTitle_descripcion}"/>
                            </f:facet>
                            <h:outputText value="#{item.descripcion}"/>
                        </p:column>
                        <p:column>
                            <f:facet name="header">
                                <h:outputText value="&nbsp;"/>
                            </f:facet>
                            <p:commandButton action="#{tiposmaquinaController.prepareView}" value="#{bundle.ListTiposmaquinaViewLink}"/>
                            <h:outputText value=" "/>
                            <p:commandButton action="#{tiposmaquinaController.prepareEdit}" value="#{bundle.ListTiposmaquinaEditLink}"/>
                        </p:column>
                    </p:dataTable>
                </h:panelGroup>
                <p:commandButton action="#{tiposmaquinaController.prepareCreate}" value="#{bundle.ListTiposmaquinaCreateLink}"/>   
            </h:form>
        </ui:define>
    </ui:composition>

</html>
